<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Class Index extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->data['controller'] = 'index';
        $this->load->model('Mindex');
    }
    
	public function getcategoriesfood(){
		die(json_encode($this->Mindex->getCategoriesFoodDb()));
	}
	
	public function getlistfood(){
		die(json_encode($this->Mindex->getListFoodDb()));
	}
	
	public function getsettingapp(){
		die(json_encode($this->Mindex->getSettingAppDb()));
	}
	
	public function savesettingapp(){
		die(json_encode($this->Mindex->saveSettingAppDb()));
	}
	
	public function getfood(){
		die(json_encode($this->Mindex->getFoodDb()));
	}
	
	public function getstaff(){
		die(json_encode($this->Mindex->getStaffDb()));
	}
	
	public function saveorder(){
		die(json_encode($this->Mindex->saveOrderDb()));
	}
    
    public function getorder(){
        die(json_encode($this->Mindex->getOrderDb()));
    }
    
    public function updatestatusorder(){
        die(json_encode($this->Mindex->updateStatusOrderDb()));
    }
    
    public function updatestatustable(){
        die(json_encode($this->Mindex->updateStatusTableDb()));
    }
    
	public function gettable(){
		die(json_encode($this->Mindex->getTableDb()));
	}
	
	public function index()
	{
		die('');
	}
	
	public function customerorder(){
        die(json_encode($this->Mindex->customerOrderDb()));
    }
    public function changetable(){
        die(json_encode($this->Mindex->changeTableDb()));
    }
    
	public function paymentstable(){
        die(json_encode($this->Mindex->paymentsTableDb()));
    }
}
